package com.iu.eblood.model;

import java.io.Serializable;
import javax.persistence.*;
import java.sql.Timestamp;


/**
 * The persistent class for the EVENTUSERRESPONSESTATE database table.
 * 
 */
@Entity
public class Eventuserresponsestate implements Serializable {
	private static final long serialVersionUID = 1L;
	private long eursid;
	private Timestamp createddate;
	private Timestamp deleteddate;
	private String isactive;
	private Eventuserresponse eventuserresponse;
	private Userresponsestate userresponsestate;

    public Eventuserresponsestate() {
    }


	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	public long getEursid() {
		return this.eursid;
	}

	public void setEursid(long eursid) {
		this.eursid = eursid;
	}


	public Timestamp getCreateddate() {
		return this.createddate;
	}

	public void setCreateddate(Timestamp createddate) {
		this.createddate = createddate;
	}


	public Timestamp getDeleteddate() {
		return this.deleteddate;
	}

	public void setDeleteddate(Timestamp deleteddate) {
		this.deleteddate = deleteddate;
	}


	public String getIsactive() {
		return this.isactive;
	}

	public void setIsactive(String isactive) {
		this.isactive = isactive;
	}


	//bi-directional many-to-one association to Eventuserresponse
    @ManyToOne
	@JoinColumn(name="EURID")
	public Eventuserresponse getEventuserresponse() {
		return this.eventuserresponse;
	}

	public void setEventuserresponse(Eventuserresponse eventuserresponse) {
		this.eventuserresponse = eventuserresponse;
	}
	

	//bi-directional many-to-one association to Userresponsestate
    @ManyToOne
	@JoinColumn(name="USERRESPONSESTATEID")
	public Userresponsestate getUserresponsestate() {
		return this.userresponsestate;
	}

	public void setUserresponsestate(Userresponsestate userresponsestate) {
		this.userresponsestate = userresponsestate;
	}
	
}